import React from 'react';
import { toJS } from 'mobx';
import { inject, observer } from 'mobx-react';
import { WeaLocaleProvider, WeaShare } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;


@inject('netDiskStore')
@observer
class Share extends React.Component {
   constructor(props) {
      super(props);
   }


   render() {
      const { shareData } = this.props.netDiskStore;

      return (
         <WeaShare ecId={`${this && this.props && this.props.ecId || ''}_WeaShare@haogpk`}
           visible={shareData.visible}
           shareParams={{
               resourcetype: 37,
               fielddbtype: '',
               resourceid: shareData.keys,
            }}
           msginfo={[
               {
                  sharetitle: '关于苹果强制启用ATS影响泛微emobile功能的解决方案',
                  desc: '描述',
                  linkurl: '/viewrequest.jsp?id=123',
                  linkurl_pc: '/viewrequest.jsp?id=123',
                  canforward: 1,
                  callbackurl: '/sharerequest.jsp?id=123',
                  // sharetypename: "云盘文件",
                  // sharetypeicon: "",
                  // sharetypebgcolor: "",
                  // showimage: "/images/p.png",
                  sharetype: 'pdoc',
                  shareid: '2341122',
               },
            ]}
         />
      );
   }
}

export default Share;
